import request from '@/utils/request'

/**
 * 用户余额表分页查询
 * @param {查询条件} data
 */
export function listCorecmsuserbalance(query) {
  return request({
    url: 'business/Corecmsuserbalance/list',
    method: 'get',
    params: query,
  })
}

/**
 * 新增用户余额表
 * @param data
 */
export function addCorecmsuserbalance(data) {
  return request({
    url: 'business/Corecmsuserbalance',
    method: 'post',
    data: data,
  })
}
/**
 * 修改用户余额表
 * @param data
 */
export function updateCorecmsuserbalance(data) {
  return request({
    url: 'business/Corecmsuserbalance',
    method: 'PUT',
    data: data,
  })
}
/**
 * 获取用户余额表详情
 * @param {Id}
 */
export function getCorecmsuserbalance(id) {
  return request({
    url: 'business/Corecmsuserbalance/' + id,
    method: 'get'
  })
}

/**
 * 删除用户余额表
 * @param {主键} pid
 */
export function delCorecmsuserbalance(pid) {
  return request({
    url: 'business/Corecmsuserbalance/delete/' + pid,
    method: 'POST'
  })
}
